package br.skytef.stmanager.utils;

import javax.faces.bean.ManagedBean;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;

@ManagedBean(name="ConverterRazaoCliente")
public class ConverterRazaoCliente implements Converter {  

	@Override  
	public Object getAsObject(FacesContext context, UIComponent component, String value) {      
		return value;
	}  

	@Override  
	public String getAsString(FacesContext context, UIComponent component, Object value) {  
		if (value == null || value.equals("")) {      
			return "";      
		} else {      
			return String.valueOf(value);    
		}      
	}     



}
